import { _decorator, Component, director, Node, Button } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('UIStartUp')
export class UIStartUp extends Component {
    start() {
        const btn = this.node.getChildByName("startBtn");
        btn.on(Button.EventType.CLICK, this.onBtnStartUpClicked, this);
    }

    update(deltaTime: number) {
        
    }

    onBtnStartUpClicked()
    {
        director.loadScene("game")
    }
}

